package cn.itcast.service.system;

import cn.itcast.domain.system.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {

	PageInfo findAll(int page,int size,String companyId);

	//根据id查询
	User findById(String userId);

	//根据id删除
	void delete(String userId);

	//保存
	void save(User user);

	//更新
	void update(User user);

	//根据邮箱查询用户
	User findByEmail(String email);

	//根据id查询城市
    String findCityById(String id);

    //根据openid获取用户
    User findByOpenId(String openid);

    User findByCompanyIdAndDegree(String companyId, int i);
	void updatePassword(User user);

    List<User> findByBirthDay(String date);
}
